-
Notifications
You must be signed in to change notification settings - Fork 11
feat: increase fast cal to muD=7 #170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #170 +/- ##
==========================================
- Coverage 99.21% 99.20% -0.01%
==========================================
Files 5 5
Lines 254 253 -1
==========================================
- Hits 252 251 -1
Misses 2 2
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please see comment. I suggested a different way to handle this.
raise ValueError( | ||
f"mu*D is out of the acceptable range (0.5 to 6) " | ||
f"Input mu*D = {mud} is out of the acceptable range " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I still think this message is a bit harsh.
Is there a reason we don't just print a warning message and default to computing using the brute-force method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Edited! Please check.
|
||
coeffs = np.array([f(mud) for f in INTERPOLATION_FUNCTIONS]) | ||
muls = np.polyval(coeffs, MULS) | ||
cve = 1 / muls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simplified the codes here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
coeffs = np.array([f(mud) for f in INTERPOLATION_FUNCTIONS]) | ||
muls = np.polyval(coeffs, MULS) | ||
cve = 1 / muls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
closes #167